package com.gmail.dengtao.joe.group.member;

import com.gmail.dengtao.joe.commons.util.HexUtils;

public class MemberUtils {

	public static String getUniqueId(Member local, Member remote) {
		//return MD5.encryptHEX(local.getHost() + "/" + local.getPort() + "/" + remote.getHost() + "/" + remote.getPort());
		//return Base64Utils.bytesToBase64(SixBitUtils.encode(local.getHost() + "/" + local.getPort() + "/" + remote.getHost() + "/" + remote.getPort()));
		return HexUtils.bytesToHex((local.getHost() + "/" + local.getPort() + "/" + remote.getHost() + "/" + remote.getPort()).getBytes());
	}
	
}